﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AircraftBattleServer
{
    [Serializable]
    public class User
    {
        public int craftID;
        public string userName;
        public int team;
        public int ready;

        public User(string userName, int craftID)
        {
            this.craftID = craftID;
            this.userName = userName;
            this.team = 1;
            this.ready = 0;
        }

        public void SetTeam(int team)
        {
            this.team = team;
        }

        public void SetReady(int ready)
        {
            this.ready = ready;
        }

        public int GetTeam()
        {
            return team;
        }

        public int GetReady()
        {
            return ready;
        }
    }
}
